package org.ashleygwinnell.snahs.err;

public class RequestNotSupportedException extends Exception
{
	
	private String message;
	
	private boolean kill;
	private boolean showingStackTrace;
	
	private Exception parentException;
	
	private String requesttype;
	
	public RequestNotSupportedException(String type)
	{
		this.requesttype = type;
	}
	
	public void setKill(boolean kill) {
		this.kill = kill;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	
	public boolean isKill() {
		return kill;
	}
	
	public void setParentException(Exception parent) {
		this.parentException = parent;
	}
	
	
	public void print()
	{
		//System.err.println("------------");
		//System.err.println("SNAHS ERROR: ");
		System.err.println("The request received (" + this.requesttype + ") is not supported.");
		//System.err.println("------------");
	}

	public void setShowStackTrace(boolean b) {
		this.showingStackTrace = b;
	}
	
	public boolean isShowingStackTrace()
	{
		return this.showingStackTrace;
	}
}
